using Microsoft.EntityFrameworkCore;
using mvc.Models;
namespace mvc.Db
{
    public class Dbcon:DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder builder)
        {
            var constr = "server=.;database=Dbcon;uid=sa;pwd=123456";
            builder.UseSqlServer(constr);
        }
        public DbSet<Category> Category {get;set;}
        public DbSet<Product> product {get;set;}
    }
}